/*
 * OrderHolder.java
 * business
 *
 * Created by SunDing on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.yidiandao.business.R;
import com.yidiandao.business.ui.widget.listview.ViewHolder;
import com.yidiandao.business.ui.widget.view.OrderButtonLayout;
import com.yidiandao.business.ui.widget.view.OrderGoodsInfoLayout;

/** 我的订单-代付款-Item-ViewHolder */
public class OrderHolder extends ViewHolder {

    public TextView mTvOrderNum;

    public TextView mTvState;

    public OrderGoodsInfoLayout mInfoLayout;

    public TextView mTvTotlePrice;

    public TextView mTvTip;

    public OrderButtonLayout mOrderStatusView;

    public LinearLayout mLlList;

    @Override
    protected void initView(View rootView) {
        mTvTip = (TextView) rootView.findViewById(R.id.tv_tip);

        mLlList = (LinearLayout) rootView.findViewById(R.id.ll_list);

        mTvOrderNum = (TextView) rootView.findViewById(R.id.tv_orderNum);
        mTvState = (TextView) rootView.findViewById(R.id.tv_state);
        mInfoLayout = (OrderGoodsInfoLayout) rootView.findViewById(R.id.info_layout);
        mTvTotlePrice = (TextView) rootView.findViewById(R.id.tv_totle_price);

        mOrderStatusView = (OrderButtonLayout) rootView.findViewById(R.id.order_StatusView);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_order_unpay;
    }
}
